<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script crossorigin="anonymous" src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
    <style>
        #res {
            width: 300px;
            height: 100px;
            border: solid 1px red;
        }
    </style>
</head>

<body>
    <button>dasong</button>
    <div id="res">

    </div>
    <script>
        $('button').eq(0).click(function() {
            $.getJSON('http://127.0.0.1:8080/a?callback=?'),
                function(a) {
                    // $('#res').html('名称:{' + data.name + '}');
                    console.log(a);
                };
        })
    </script>
</body>

</html>